//
//  packTableViewCell.m
//  Journey
//
//  Created by dllo on 16/5/20.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "packTableViewCell.h"

@implementation packTableViewCell


-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self createPackTVC];
    }
    return self;
}

-(void)createPackTVC
{
    self.label = [[UILabel alloc] init];
    
    self.label.textAlignment = NSTextAlignmentCenter;
    
    [self.contentView addSubview:self.label];
    
    self.view = [[UIView alloc] init];
   // self.view.backgroundColor = YNColor(45, 102, 62);
    self.view.frame = CGRectMake(0, 0, self.contentView.frame.size.width, self.contentView.frame.size.height);
    [self.contentView addSubview:self.view];
    
    self.lineView = [[UIView alloc] init];
    self.lineView.backgroundColor = [UIColor redColor];
    self.lineView.frame = CGRectMake(0, 0, 3, 60);
    [self.view addSubview:self.lineView];
    self.selectedBackgroundView = self.view;
    
  
}

-(void)layoutSubviews
{
    [super layoutSubviews];
    self.label.frame = self.contentView.bounds;
   
}





@end
